#ifndef __GLOBAL_H
#define __GLOBAL_H

#define MODE_ORIGINAL			1
#define MODE_JMODIFICATION1		2
#define MODE_JMODIFICATION2		3
#define MODE_JMODIFICATION3		4

int method_mode;

#ifndef Report
#define Report(str) if(outReport != 0) outReport(str)
#endif
#ifndef ShowJImage
#define ShowJImage(step, oldTR, J, ny, nx) if(outShowJImage != 0) outShowJImage(step, oldTR, J, ny, nx)
#endif

void (_stdcall *outReport)(unsigned char* str);
void (_stdcall *outShowJImage)(int step, int oldTR, float * J, int height, int width);


#endif